{if $countRetunSell neq '0' }
تقرير مردودات المبيعات

عدد القطع المردوده: {$returntotalQTY}

إجمالي المردودات: {$returntotalBills}

إجمالي الخصومات: {$returntotaldiscount}

اجمالى المدفوع : {$totalpayed}

{foreach $returnsellbillData as $returnsellbill} {if {$returnsellbill->conditions} <> 1} {if {$returnsellbill->conditions} eq 1} {elseif {$returnsellbill->conditions} eq 0} {/if} {else if $returnsellbill->type eq "sellAndReturn"} {/if} {/if} {/foreach}
رقم الفاتورة تاريخ الفاتورة العميل المستخدم {if $Programsettingdata->delegate_seller eq 0} بائع {elseif $Programsettingdata->delegate_seller == 1}مندوب {elseif $Programsettingdata->delegate_seller == 2}طبيب {/if} اجمالى الفاتورة الخصم المدفوع عدد القطع تفاصيل الفاتورة
{$returnsellbill->returnsellbillid} {$returnsellbill->returnsellbilldate} {if {$returnsellbill->clientname} eq ""} نقدى {else} {$returnsellbill->clientname} {/if} {$returnsellbill->username} {$returnsellbill->employeename} {$returnsellbill->returnsellbillaftertotalbill} {$returnsellbill->sellbilldiscount}{$returnsellbill->returnsellbilldiscount} {$returnsellbill->returnsellbilltotalpayed}{$returnsellbill->sellbilltotalpayed} {$returnsellbill->returnsellQuantity} {if $returnsellbill->type eq "returnSell"}

{/if}